<div class="row">
	<div class="col-md-6 col-md-offset-3 sign-up">
		<div class="panel panel-default">
			<div class="panel-heading" style="padding: 2px 10px">
				<label>注册</label>
			</div>
			<div class="panel-body">

				<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
					<%= devise_error_messages! %>

					<div class="form-group">
						<%= f.label '邮箱' %><br />
						<%= f.email_field :email, autofocus: true,class: 'form-control' %>
					</div>
					<div class="form-group">
						<%= f.label '名字'%><br/>
						<%= f.text_field :name,class: 'form-control'%>
					</div>
					<div class="form-group">
						<%= f.label '密码' %>
						<% if @minimum_password_length %>
						<em>( 最少为<%= @minimum_password_length %>个字符)</em>
						<% end %><br />
						<%= f.password_field :password, autocomplete: "off",class:'form-control' %>
					</div>

					<div class="form-group">
						<%= f.label '确认密码' %><br/>
						<%= f.password_field :password_confirmation, autocomplete: "off",class:'form-control' %>
					</div>

					<div class="actions">
						<%= f.submit "注册" , class:'btn btn-primary btn-block'%>
					</div>
				<% end %>
			</div>
			<div class="panel-footer">
				<%= render "devise/shared/links" %>
			</div>
		</div>
	</div>
</div>

